home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / test / test_codecmaps_kr.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2005-10-18  |  2KB  |  41 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. from test import test_support
  5. from test import test_multibytecodec_support
  6. import unittest
  7.  
  8. class TestCP949Map(test_multibytecodec_support.TestBase_Mapping, unittest.TestCase):
  9.     encoding = 'cp949'
  10.     mapfilename = 'CP949.TXT'
  11.     mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP949.TXT'
  12.  
  13.  
  14. class TestEUCKRMap(test_multibytecodec_support.TestBase_Mapping, unittest.TestCase):
  15.     encoding = 'euc_kr'
  16.     mapfilename = 'EUC-KR.TXT'
  17.     mapfileurl = 'http://people.freebsd.org/~perky/i18n/EUC-KR.TXT'
  18.  
  19.  
  20. class TestJOHABMap(test_multibytecodec_support.TestBase_Mapping, unittest.TestCase):
  21.     encoding = 'johab'
  22.     mapfilename = 'JOHAB.TXT'
  23.     mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/KSC/JOHAB.TXT'
  24.     pass_enctest = [
  25.         ('\\', u'\xe2\x82\xa9')]
  26.     pass_dectest = [
  27.         ('\\', u'\xe2\x82\xa9')]
  28.  
  29.  
  30. def test_main():
  31.     suite = unittest.TestSuite()
  32.     suite.addTest(unittest.makeSuite(TestCP949Map))
  33.     suite.addTest(unittest.makeSuite(TestEUCKRMap))
  34.     suite.addTest(unittest.makeSuite(TestJOHABMap))
  35.     test_support.run_suite(suite)
  36.  
  37. test_multibytecodec_support.register_skip_expected(TestCP949Map, TestEUCKRMap, TestJOHABMap)
  38. if __name__ == '__main__':
  39.     test_main()
  40.  
  41.